package com.abluedog.c1;

import java.io.IOException;
import java.nio.file.*;
import java.nio.file.attribute.BasicFileAttributes;

public class FileWalkFileTreeTest {

    public static void main(String[] args) throws IOException {

        Files.walkFileTree(Paths.get("D:\\test"), new SimpleFileVisitor<>() {
            @Override
            public FileVisitResult preVisitDirectory(Path dir, BasicFileAttributes attrs) {
                return null;
            }

            @Override
            public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) {
                return null;
            }

            @Override
            public FileVisitResult visitFileFailed(Path file, IOException exc) {
                return null;
            }

            @Override
            public FileVisitResult postVisitDirectory(Path dir, IOException exc) {
                return null;
            }
        });
    }
}
